package com.yc.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 设备抓拍记录
 *
 * @author Yancy
 * @since 2024-11-26
 */
@Data
@TableName("device_capture_logs")
@ApiModel(value = "DeviceCaptureLogs对象", description = "设备抓拍记录")
public class DeviceCaptureLogs implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("设备编号")
    @TableField("device_num")
    private String deviceNum;

    @ApiModelProperty("抓拍时间")
    @TableField("capture_time")
    private LocalDateTime captureTime;

    @ApiModelProperty("图片名称")
    @TableField("pic_name")
    private String picName;

    @ApiModelProperty("图片base64编码数据")
    @TableField("pic_string")
    private String picString;

    @ApiModelProperty("通道号")
    @TableField("channel_code")
    private String channelCode;

    @ApiModelProperty("图片路径")
    @TableField("pic_path")
    private String picPath;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    public static final String DEVICE_NUM = "device_num";

    public static final String CAPTURE_TIME = "capture_time";

    public static final String PIC_NAME = "pic_name";

    public static final String PIC_STRING = "pic_string";

    public static final String CHANNEL_CODE = "channel_code";

}
